function getTime(){
    let time = new Date();
    // 获取年份
    let year = time.getFullYear();
    //获取月份
    let month = time.getMonth()+1;
    month = month<10?"0"+month:month
    //获取日
    let day = time.getDate();
    day = day<10?"0"+day:day
    let h = time.getHours();
    h = h<10?"0"+h:h
    let m = time.getMinutes();
    m = m<10?"0"+m:m
    let s = time.getSeconds();
    s = s<10?"0"+s:s
    return `${year}年${month}月${day}日 ${h}:${m}:${s}`
} 
module.exports = {
    getTime:getTime
}